<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="uct" uri="/WEB-INF/uct.tld" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <%@ include file="/common/sale/include/common-base.jsp"%>
  <title>农E通|会员审核-${titleName }</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

  <!-- top start -->
  <%@include file="/common/sale/top.jsp" %>
  <!-- top end -->
  <!-- left start -->
  <%@include file="/common/sale/left.jsp" %>
  <!-- left end-->

 <!-- main start -->
 <%--  <div class="content-wrapper">
    <div class="col-xs-12">
           	<div class="box">
           		<div class="box-header with-border">
           		</div>
           	
	                <div class="box-body">
	                    <div class="box box-danger"  >
	                    	<!-- form start -->
	                    	
	                    		<form id="myForm" name="myForm"  action="" method="post">
							       		 <input type="hidden" name="formToken" id="formToken" value="${formToken}">
								        <div class="pro_table">
								        <table class="table table-bordered"> 
								           <tr>
									           <th width="25%">会员名称</th>
									           	<td width="25%">
									           		<div class="col-sm-5">
									           			<span data-name="memberCname" ></span>
									           		</div>
									           	</td>
									           <th width="25%">会员类型</th>
									           	<td width="25%">
									           		<div class="col-sm-5">
									           			<span data-name="memberType" data-dict="userType"></span>
									           		</div>
									           	</td>
								          </tr>
								          <tr>
								           <th>所在地区<font style="color: red;">*</font></th>
								           	<td>
								           		<div class="col-sm-5">
													<span data-name="strFiftyFourteen" data-dict="area" ></span>
										 			<span data-name="strFiftyThirteen" data-dict="area" ></span>
									 			</div>								           		
								           	</td>
								          </tr>
								          
								          <table id="faren" class="table table-bordered" style="display: none;">
								            <tr>
								              <th width="25%">注册地<font style="color: red;">*</font></th>
								              <td>
								              		<div class="col-sm-5">
								              			<span data-name="address" ></span>
								              		</div>
								              </td>
								            </tr>
								            <tr>
								              <th>注册资本（元）<font style="color: red;">*</font></th>
								              <td>
								              		<div class="col-sm-5">
								              		  <span data-name="regCapital" ></span>
								              		</div>
								              </td>
								            </tr>
								            <tr>
								              <th>成立时间<font style="color: red;">*</font></th>
								              <td>
									              <div class="col-sm-5">
									              		<span data-name="regTime" ></span>
									              </div>
								              </td>
								            </tr>
								            <tr>
								              <th>法定代表人<font style="color: red;">*</font></th>
								              <td>
								              	<div class="col-sm-5">
								              		<span data-name="legalPerson" ></span>
								              	</div>
								              </td>
								            </tr>
								            <tr>
								              <th>所属行业<font style="color: red;">*</font></th>
								              <td>
								              	<div class="col-sm-5">
								              		<span data-name="strFiftyThree" data-dict="Industrycode" ></span>
								              	</div>
								              	
								              </td>
								            </tr>
								            <tr>
								              <th>企业类型<font style="color: red;">*</font></th>
								              <td>
								              	<div class="col-sm-5">
								              		<span data-name="enterpriseType" data-dict="buyerjjlx" ></span>
								              	</div>
								               </td>
								            </tr>
								            <tr>
								              <th>组织机构代码</th>
								              <td>
								              	<div class="col-sm-5">
								              		<span data-name="orgCode" ></span>
								              	</div>
								              </td>
								            </tr>
								            <tr>
								              <th>上传营业执照</th>
								              <td>
								              	<div class="col-sm-5"  id="filespan_1">
										              	<img id="fileUpText_1_showImg" src="${ctx}/images/def.jpg" style="width:100px;height:80px;" />
								              	</div>
								              </td>
								            </tr>
								            <tr>
								              <th>经营范围</th>
								              <td>
								              	<div class="col-sm-5">
								              		<span data-name="strFiftyOne" ></span>
								              	</div>
								              </td>
								            </tr>
								      </table>
								           
								           
								        <table id="ziran" class="table table-bordered"  style="display: none;" >
								       
								            <tr>
								              <th width="25%">身份证件号码</th>
								              <td colspan="3">
								              	<div class="col-sm-5">
								              		<span data-name="certNo" ></span>
								              	</div>
								              </td>
								            </tr>
								            <tr>
								              <th width="25%">身份证正面照</th>
								              <td width="25%">
								              	<span  id="filespan_2" class="col-sm-5" >
									              	<img id="fileUpText_2_showImg" src="${ctx}/images/def.jpg" style="width:100px;height:80px;" />
												</span>
								              </td>
								              <th  width="25%">身份证反面照</th>
								              <td>
								              	<span  id="filespan_3" class="col-sm-5" >
									              	<img id="fileUpText_3_showImg" src="${ctx}/images/def.jpg" style="width:100px;height:80px;" />
												</span>
								              </td>
								            </tr>
								            <tr>
								              <th width="25%">工作单位</th>
								              <td width="25%">
									              <div class="col-sm-5">
									                <span data-name="address" ></span>
									              </div>
								              </td>
								              <th width="25%">职务</th>
								              <td width="25%">
								              	  <div class="col-sm-5">
								              	  	<span data-name="strFiftyTwo" ></span>
								              	  </div>
								            </tr>
								        </div>
								     </table>
					</form>
	                    	
	         <form id="auditFrom" name="auditFrom">
		         <table class="table table-bordered"> 
		         	<td>
		         		<label>审核意见</label>
		         	</td>
		         	<td colspan="3">
		         		<textarea class="form-control" id="auditOpinion" name="auditOpinion" rows="2" placeholder="请输入审核意见">审核通过</textarea>
		         	</td>
		         </table>
		         <center>
		         		 <button type="button" class="btn btn-default btn-lg" onclick="history.go(-1)"> 返 回 </button>
					 	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					 	 <button type="button" class="btn btn-danger btn-lg" onclick="submitAudit('91')"> 审 核 通 过 </button>
	           			 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					 	 <button type="button" class="btn btn-info btn-lg" onclick="submitAudit('90')"> 审核不通过 </button>  
		         </center>
		         
            </form>		
	        <!-- form end -->
	                    
	                    
	                    </div>
	                </div>
	        </div>
    </div>
  </div>
   <!-- main end -->
  
  <!-- foot start -->
  <%@include file="/common/sale/foot.jsp" %>
  <!-- foot start -->
</div> --%>
<div class="content-wrapper">
    <div class="col-xs-12">
           	<div class="box">
           		<div class="box-header with-border">
           		</div>
           	
	                <div class="box-body" >
	                    <div class="box box-danger"  >
	<form class="form-horizontal" role="dealForm" id="dealForm" action="javascript:void(0)">
      	<table class="table table-bordered user_table">
      		<tr>
      			<th colspan="10"><span>理财产品信息</span></th>
      		</tr>
	    	<tr>
	      		<th class="active col-xs-2" >产品编号：</th>
	      		<td colspan="1" class="text_l col-xs-4"><span data-name="proName">c001</span></td>
	      	    <th class="active col-xs-2">收益类型：</th>
	      	    <td class="text_l col-xs-4"><span data-name="transType" data-dict="dealWay">保本收益</span></td>
	      	</tr>
	    	<tr>
	      		<th class="active col-xs-2" >理财产品类型：</th>
	      		<td colspan="1" class="text_l col-xs-4"><span data-name="proName">招银进宝系列</span></td>
	      	    <th class="active col-xs-2">存期：</th>
	      	    <td class="text_l col-xs-4"><span data-name="transType" data-dict="dealWay">6个月</span></td>
	      	</tr>
	    	<tr>
	      		<th class="active col-xs-2" >发行年度：</th>
	      		<td colspan="1" class="text_l col-xs-4"><span data-name="proName">2016年</span></td>
	      	    <th class="active col-xs-2">起息日期：</th>
	      	    <td class="text_l col-xs-4"><span data-name="transType" data-dict="dealWay">2016-03-12</span></td>
	      	</tr>
	    	<tr>
	      		<th class="active col-xs-2" >发行期次：</th>
	      		<td colspan="1" class="text_l col-xs-4"><span data-name="proName">2</span></td>
	      	    <th class="active col-xs-2">结息日期：</th>
	      	    <td class="text_l col-xs-4"><span data-name="transType" data-dict="dealWay">2016-09-12</span></td>
	      	</tr>
	    	<tr>
	      		<th class="active col-xs-2" >发行对象：</th>
	      		<td colspan="1" class="text_l col-xs-4"><span data-name="proName">个人</span></td>
	      	    <th class="active col-xs-2">产品发售方式：</th>
	      	    <td class="text_l col-xs-4"><span data-name="transType" data-dict="dealWay">直接销售</span></td>
	      	</tr>
	    	<tr>
	      		<th class="active col-xs-2" >产品名称：</th>
	      		<td colspan="1" class="text_l col-xs-4"><span data-name="proName">慧聚财1号</span></td>
	      	    <th class="active col-xs-2">本金币种：</th>
	      	    <td class="text_l col-xs-4"><span data-name="transType" data-dict="dealWay">人民币</span></td>
	      	</tr>
	    	<tr>
	      		<th class="active col-xs-2" >钞汇标志：</th>
	      		<td colspan="1" class="text_l col-xs-4"><span data-name="proName">现金</span></td>
	      	    <th class="active col-xs-2">理财方式：</th>
	      	    <td class="text_l col-xs-4"><span data-name="transType" data-dict="dealWay">普通理财</span></td>
	      	</tr>
	    	<tr>
	      		<th class="active col-xs-2" >渠道：</th>
	      		<td colspan="1" class="text_l col-xs-4"><span data-name="proName">柜台</span></td>
	      	    <th class="active col-xs-2">理财凭证：</th>
	      	    <td class="text_l col-xs-4"><span data-name="transType" data-dict="dealWay">权利凭证</span></td>
	      	</tr>
	    	<tr>
	      		<th class="active col-xs-2" >产品评分：</th>
	      		<td colspan="1" class="text_l col-xs-4"><span data-name="proName">8</span></td>
	      	    <th class="active col-xs-2">额度管理级别：</th>
	      	    <td class="text_l col-xs-4"><span data-name="transType" data-dict="dealWay">总行(手动分配)</span></td>
	      	</tr>
	    	<tr>
	      		<th class="active col-xs-2" >发行序号：</th>
	      		<td colspan="1" class="text_l col-xs-4"><span data-name="proName">ss16031211</span></td>
	      	    <th class="active col-xs-2">资金上存级别：</th>
	      	    <td class="text_l col-xs-4"><span data-name="transType" data-dict="dealWay">B</span></td>
	      	</tr>
	    	<tr>
	      		<th class="active col-xs-2" >计息周期：</th>
	      		<td colspan="1" class="text_l col-xs-4"><span data-name="proName">月</span></td>
	      	    <th class="active col-xs-2">产品状态：</th>
	      	    <td class="text_l col-xs-4"><span data-name="transType" data-dict="dealWay">正常</span></td>
	      	</tr>
	    	<tr>
	      		<th class="active col-xs-2" >投资终止日期：</th>
	      		<td colspan="1" class="text_l col-xs-4"><span data-name="proName">2017-01-30</span></td>
	      	    <th class="active col-xs-2">业务代号：</th>
	      	    <td class="text_l col-xs-4"><span data-name="transType" data-dict="dealWay">002156</span></td>
	      	</tr>
	    	<tr>
	      		<th class="active col-xs-2" >收益币种：</th>
	      		<td colspan="1" class="text_l col-xs-4"><span data-name="proName">人民币</span></td>
	      	    <th class="active col-xs-2">业务分类：</th>
	      	    <td class="text_l col-xs-4"><span data-name="transType" data-dict="dealWay">XXXX</span></td>
	      	</tr>
	    	<tr>
	      		<th class="active col-xs-2" >额度批号：</th>
	      		<td colspan="1" class="text_l col-xs-4"><span data-name="proName">001</span></td>
	      	    <th class="active col-xs-2">当前发售标志：</th>
	      	    <td class="text_l col-xs-4"><span data-name="transType" data-dict="dealWay">发售</span></td>
	      	</tr>
	    	<tr>
	      		<th class="active col-xs-2" >可分红日期：</th>
	      		<td colspan="1" class="text_l col-xs-4"><span data-name="proName">2017-06-30</span></td>
	      	    <th class="active col-xs-2">总额度：</th>
	      	    <td class="text_l col-xs-4"><span data-name="transType" data-dict="dealWay">1000000</span></td>
	      	</tr>
	    	<tr>
	      		<th class="active col-xs-2" >实际收益率：</th>
	      		<td colspan="1" class="text_l col-xs-4"><span data-name="proName">4.4%</span></td>
	      	    <th class="active col-xs-2">起存金额：</th>
	      	    <td class="text_l col-xs-4"><span data-name="transType" data-dict="dealWay">500000</span></td>
	      	</tr>
	    	<tr>
	      		<th class="active col-xs-2" >认购金额：</th>
	      		<td colspan="1" class="text_l col-xs-4"><span data-name="proName">2000</span></td>
	      	    <th class="active col-xs-2">增量：</th>
	      	    <td class="text_l col-xs-4"><span data-name="transType" data-dict="dealWay">100000</span></td>
	      	</tr>
	    	<tr>
	      		<th class="active col-xs-2" >已发售额度：</th>
	      		<td colspan="1" class="text_l col-xs-4"><span data-name="proName">0.00</span></td>
	      	    <th class="active col-xs-2">预期收益率：</th>
	      	    <td class="text_l col-xs-4"><span data-name="transType" data-dict="dealWay">5.0%</span></td>
	      	</tr>
	    	
      	</table>
    </form>
    
      <form id="auditFrom" name="auditFrom">
		         <table class="table table-bordered"> 
		         	<td>
		         		<label>审核意见</label>
		         	</td>
		         	<td colspan="3">
		         		<textarea class="form-control" id="auditOpinion" name="auditOpinion" rows="2" placeholder="请输入审核意见">审核通过</textarea>
		         	</td>
		         </table>
		         <center>
		         		 <button type="button" class="btn btn-default btn-lg" onclick="history.go(-1)"> 返 回 </button>
					 	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					 	 <button type="button" class="btn btn-danger btn-lg" onclick="submitAudit('91')"> 审 核 通 过 </button>
	           			 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					 	 <button type="button" class="btn btn-info btn-lg" onclick="submitAudit('90')"> 审核不通过 </button>  
		         </center>
		         
            </form>		
    </div>
</div>
</div>
</div>








</body>

</html>
<script>
var clickMenu= 'product-audit-list';
var memberId = '${param.memberId}';

	function loadMember(){
		var viewUrl = common_info_url+'?doCode=memberInfo';
		$.ajax({
			type:'get',
			url:viewUrl,
			async: false,
			data:{memberId:memberId,f:new Date().getTime()},
			dataType:'json',
			success:function(myData){
					//console.log(myData);
					FormUtil.loadView("", myData);
					setcustomerType(myData.memberType);
					$("#fileUpText_1_showImg").attr("src",myData.strHundredFive);
					$("#fileUpText_2_showImg").attr("src",myData.strHundredTwo);
					$("#fileUpText_3_showImg").attr("src",myData.strHundredThree);
				}
			});	
	}

	function setcustomerType(t){
		if("person"==t){
			$("#faren").hide();
			$("#ziran").show();
		}else if("org"==t){
			$("#faren").show();
			$("#ziran").hide();
		}
	}
	
	
$(function(){
	loadMember();
	setToken();
});
	
function submitAudit(value){
	var formToken = $("#formToken").val();
	var index_submit = layer.confirm('您确定要提交信息吗？', {btn: ['Yes','No'],closeBtn: 0,offset: '220px'}
	, function(){
		var index_load = layer.load(2, {shade: false,offset: '300px'});
		$.ajax({
		    type:'post',
		    url:common_submit_url+"?doCode=memberSave",
		    data:{'memberId':memberId,'auditStatus':value,'formToken':formToken},
		    dataType:'json',
		    success: function(myData){
		     	layer.close(index_load);
		    	setToken();
		    	layer.alert("操作成功！", {icon: 1,closeBtn: 0,offset: '220px'},function(){
			    	window.location.href="${page_admin}/financial/product-audit-list";
				});
		  	}
		});
	});
	

}	

function setToken(){
	$.ajax({
	    type:'get',
	    url:'${ctx}/sendPage/token?token=true',
	    dataType:'text',
	    success: function(myData){
	    	console.log(myData);
			 $('#formToken').val(myData);
	  	}
	});	
}
</script>

